using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using APjunktion.Common;
using System.Threading;
using APNotifications.Helper;
using System.Xml;

namespace APNotifications
{
    public partial class Messaging : Form
    {
      
        public Messaging()
        {
            InitializeComponent();
                                
        }

        private void Messaging_Load(object sender, EventArgs e)
        {
            IM _IM = new IM(Config.UpdaterUrl());
            string Messages = string.Empty;

            Messages = _IM.GetMessageCount(1, 1);
            Messages += _IM.GetMessages(2, 1, 1);

            rtbMessages.Text = Messages;

        }
            
    }
}